package com.hdoit.ares.web.official.modelconfig;

import com.hdoit.ares.web.official.providers.AnswerStateProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

public class OnlineApplyforSearchConfig extends ModelMetadataAttributeConfiguration{
	   public OnlineApplyforSearchConfig(){
	        this.setProperty("userName")
	            .hasAttribute(new DisplayNameAttribute("用户名"));

	        this.setProperty("phone")
	            .hasAttribute(new DisplayNameAttribute("手机号码"));

	        this.setProperty("startDate")
	            .hasAttribute(new DisplayNameAttribute("申请时间从"))
	            .hasAttribute(new DateTimeAttribute());

	        this.setProperty("endDate")
	            .hasAttribute(new DisplayNameAttribute("到"))
	            .hasAttribute(new DateTimeAttribute());

	        this.setProperty("answerState")
	            .hasAttribute(new DisplayNameAttribute("回访状态"))
	            .hasAttribute(new DropDownListAttribute(new AnswerStateProvider("senior")));

	        this.setProperty("answerTime")
	            .hasAttribute(new DisplayNameAttribute("回返时间"));

	        this.setProperty("comments")
	            .hasAttribute(new DisplayNameAttribute("申请内容"));

	    }
}
